{include file="index/head" /}
<div class="box">
<div class="box-head">
    <h2>还原数据库</h2>
  <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
<div class="table-responsive">
<table class="table">
  <tr>
    <th style="text-align:left; padding-left:31px;">备份文件名称</th>    
    <th>更新时间</th>
    <th width="340">操作</th>
  </tr>
  {volist name="list" id="vo"}
  <tr>
    <td class="td1">{$root.$vo}</td>
    <td>{php} echo date('Y-m-d H:i:s',filemtime($root.$vo)) {/php}</td>
    <td> <a href="{:url('importsql',['at'=>'import','name'=>$vo])}" class="btn"><i class="icon-check"></i> 还原备份</a>
    <a href="{:url('downloadsql',['name'=>$vo])}" target="_blank" class="btn green"><i class="icon-download"></i> 下载备份</a>
    <a href="javascript:void(0);" onclick="sycms.del('{:url('delsql',['name'=>$vo])}')" class="btn red"><i class="icon-trash-o"></i> 删除备份</a></td>
  </tr>
  {/volist} 
</table>
</div>
